package com.hehao.kurunner.ui.mine;

import android.view.View;
import android.widget.Toast;

import com.hehao.kurunner.R;
import com.hehao.kurunner.common.BaseActivity;

/**
 * 个人信息界面activity
 * @author Jack
 * @time 2015/11/19
 * @email bnbzhb@qq.com
 */
public class InfoActivity extends BaseActivity {
    @Override
    protected void initView() {
        setLayoutWithCommonHeader(R.layout.activity_info);
        setHeadLeft(R.drawable.ico_back);
        setHeadTitle(R.string.info_info);
        getViewWithClick(R.id.iv_info_pic);

        getViewWithClick(R.id.rl_info_area);
        getViewWithClick(R.id.rl_info_nick);
        getViewWithClick(R.id.rl_info_sex);
        getViewWithClick(R.id.rl_info_email);
        getViewWithClick(R.id.rl_info_height);
        getViewWithClick(R.id.rl_info_intro);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void onViewClick(View v) {
        if(v.getId()==R.id.iv_info_pic){
            Toast.makeText(context,"修改头像",Toast.LENGTH_SHORT).show();
        }
        if(v.getId()==R.id.rl_info_nick){
            Toast.makeText(context,"修改昵称",Toast.LENGTH_SHORT).show();
        }
        if(v.getId()==R.id.rl_info_sex){
            Toast.makeText(context,"修改性别",Toast.LENGTH_SHORT).show();
        }
        if(v.getId()==R.id.rl_info_height){
            Toast.makeText(context,"修改身高",Toast.LENGTH_SHORT).show();
        }
        if(v.getId()==R.id.rl_info_area){
            Toast.makeText(context,"修改所在地",Toast.LENGTH_SHORT).show();
        }
        if(v.getId()==R.id.rl_info_email){
            Toast.makeText(context,"修改邮箱",Toast.LENGTH_SHORT).show();
        }
        if(v.getId()==R.id.rl_info_intro){
            Toast.makeText(context,"修改个人介绍",Toast.LENGTH_SHORT).show();
        }
    }

    @Override
    protected void onLeftClick() {
        finish();
    }
}
